/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package buggywar.services;

import Classes.Bug;
import SessionBeans.BugFacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author paly
 */
@WebService
@Stateless
public class BugService {
    @EJB
    BugFacadeLocal bugFacadeLocal;

    @WebMethod
    public List<Bug> selectBugs() {
        return bugFacadeLocal.findAll();
    }
}
